﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" type="text/css" href="/css/houtai/layout.css">
    <link type="text/css" href="~/css/houtai/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="~/css/houtai/style.css">
    <title>后台头部</title>
</head>
<body>
    <div class="view-topbar">
        <div class="topbar-console">
            <div class="tobar-head fl">
                <a class="topbar-logo fl">
                    <span></span>
                </a>
                <a href="/denglu.aspx" target="_blank" class="topbar-home-link topbar-btn text-center fl"><span style="color:wheat;">经销商链接</span></a>
            </div>
        </div>
        <div class="topbar-info">
            <ul class="fr1">
                <li class="fl dropdown topbar-notice topbar-btn">
                    套餐
                    <a href="/ljsheng/cplist" target="list" class="dropdown-toggle">
                        <span id="sj" class="topbar-num have">0</span>
                        <!--have表示有消息，没有消息去掉have-->
                    </a>
                </li>
                <li class="fl dropdown topbar-notice topbar-btn">
                    经销商
                    <a href="/ljsheng/hylist" target="list" class="dropdown-toggle">
                        <span id="hy" class="topbar-num have">0</span>
                    </a>
                </li>
                <li class="fl dropdown topbar-notice topbar-btn">
                    未激活
                    <a href="/ljsheng/ddlist?pay=2" target="list" class="dropdown-toggle">
                        <span id="dd" class="topbar-num have">0</span>
                    </a>
                </li>
                <li class="fl dropdown topbar-notice topbar-btn">
                    已激活
                    <a href="/ljsheng/ddlist?pay=1" target="list" class="dropdown-toggle">
                        <span class="icon-notice"></span>
                        <span id="pay" class="topbar-num have">0</span>
                    </a>
                </li>
                <li class="fl dropdown topbar-notice topbar-btn">
                    总收入
                    <a href="/ljsheng/ddlist" target="list" class="dropdown-toggle">
                        <span id="rmb" class="topbar-num have">0</span>
                    </a>
                </li>
                <li class="fl topbar-info-item">
                    <div class="dropdown">
                        <a href="#" class="topbar-btn">
                            <span class="fl text-normal" style="color:red;">@(LJSheng.Common.LCookie.Getljsheng("account"))</span>
                        </a>
                    </div>
                </li>
                <li class="fl topbar-info-item">
                    <div class="dropdown">
                        <a href="/logout.aspx?lx=0" class="topbar-btn">
                            <span class="fl text-normal">退出</span>
                            <span class="icon-arrow-down"></span>
                        </a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <audio id="audio-notification"><source src="/images/msg.mp3" type="audio/mpeg" /></audio>
    <script src="~/js/jquery.js"></script>
    <script>
        function GetDD() {
            $.ajax({
                type: "post",
                url: "/ljsheng/tb",
                data: "",
                cache: false,
                dataType: "json",
                timeout: 5000,
                error: function () {
                    $("#msg").html("请刷新页面");
                },
                beforeSend: function () { },
                success: function (data) {
                    if (data.result == 200) {
                        if (data.data.txtx != 0) {
                            $("#msg").addClass("msg");
                            //$("#audio-notification").get(0).play();
                        }
                        $("#dd").html(data.data.dd);
                        $("#sj").html(data.data.sj);
                        $("#hy").html(data.data.hy);
                        $("#pay").html(data.data.pay);
                        $("#rmb").html(data.data.rmb);
                    }
                    else {
                        $("#hy").html("0");
                        $("#dd").html("0");
                        $("#sj").html("0");
                        $("#pay").html("0");
                        $("#rmb").html("0");
                    }
                }
            });
            setTimeout(function () { GetDD(); }, 3838);
        }
        setTimeout(function () { GetDD(); }, 1000);
    </script>
</body>
</html>
